Using the Program Registry

To start debugging a program from within WinDbg, you must first add it to the program registry (or use the .ATTACH command). The WinDbg program registry is a list of programs that WinDbg can debug. Each program in the registry has one or more workspaces associated with it. A workspace is a set of WinDbg defaults that can be associated with a program.

{bmc bm4.MRB}        To add a program to the registry

  1.  Choose Open from the Program menu.

The Program Open dialog will appear with a list of all of the programs in the registry.

  2.  Choose New.

The common Open dialog will appear.

  3.  Open the executable file that you want to debug, and choose OK.

The dialog boxes will close. WinDbg is now ready to begin debugging.

 

{bmc bm4.MRB}        To load a program already in the registry

  1.  Choose Open from the Program menu.

The Program Open dialog will appear with a list of all of the programs in the registry.

  2.  Select the program to debug from the Programs list.

  3.  Select the workspace to use from the Workspaces list.

For more information on workspaces, see the following section,  Using Workspaces. 

  4.  Choose OK.

 

{bmc bm4.MRB}        To delete a program

  1.  Choose Delete from the Program menu.

  2.  In the Program box, select the program that you want to delete.

  3.  Choose Delete. The selected program will disappear.

  4.  Choose OK.